import { Injectable } from '@angular/core';
import {BehaviorSubject} from "rxjs";

@Injectable({
  providedIn: 'root'
})
export class GlobalDataService {
  // public globalVar:BehaviorSubject<any[]> = new BehaviorSubject([]);
  public globalVar:any = new BehaviorSubject([]);
  public username = '李四';
  public number = 0;
  constructor() { }
}
